 
package com.xbongbong.admin.domain.dao;

import com.xbongbong.admin.domain.entity.RaidersCorpScoreEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
* @author autoGen
* @time 2019-09-18 13:56:15
*/
@Repository
@Mapper
public interface RaidersCorpScoreDao {

	 
	Integer insert(RaidersCorpScoreEntity raidersCorpScore);
	Integer update(RaidersCorpScoreEntity raidersCorpScore);

	void insertBatch(@Param("list") List<RaidersCorpScoreEntity> raidersCorpScoreList);
	
	Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);
	RaidersCorpScoreEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);
	
	
	List<RaidersCorpScoreEntity>  findEntitys(@Param("param") Map<String, Object> param);
	Integer getEntitysCount(@Param("param") Map<String, Object> param);

	/**
	 * 通过公司corpid获取到公司的积分实体
	 * @param corpid
	 * @return com.xbongbong.admin.domain.entity.RaidersCorpScoreEntity
	 * @author zcp
	 * @date 19/10/16 016 10:23
	 * @update 19/10/16 016 10:23
	 * @since v1.0
	 * @version v1.0
	 */
	RaidersCorpScoreEntity getByCorpid(@Param("corpid") String corpid);

}